home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime vr / vrbackbuffer / vrbackbuffer.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.6 KB  |  81 lines

  1. //////////
  2. //
  3. //    File:        VRBackBuffer.h
  4. //
  5. //    Contains:    Sample code showing how to work with orientation of QuickTime VR back buffer.
  6. //
  7. //    Written by:    Ken Doyle
  8. //    Revised by: Tim Monroe
  9. //
  10. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <1>         06/26/99    rtm        first file 
  15. //       
  16. //////////
  17.  
  18. //////////
  19. //       
  20. // header files
  21. //       
  22. //////////
  23.  
  24. #ifndef __MOVIES__
  25. #include <Movies.h>
  26. #endif
  27.  
  28. #ifndef __FIXMATH__
  29. #include <FixMath.h>
  30. #endif
  31.  
  32. #ifndef __QUICKTIMEVR__
  33. #include <QuickTimeVR.h>
  34. #endif
  35.  
  36. #ifndef __QUICKDRAW__
  37. #include <QuickDraw.h>
  38. #endif
  39.  
  40. #ifndef __QTVRUtilities__
  41. #include "QTVRUtilities.h"
  42. #endif
  43.  
  44. #ifndef __QTUtilities__
  45. #include "QTUtilities.h"
  46. #endif
  47.  
  48. #include "ComApplication.h"
  49.  
  50.  
  51. //////////
  52. //       
  53. // compiler macros
  54. //       
  55. //////////
  56.  
  57.  
  58. //////////
  59. //       
  60. // constants
  61. //       
  62. //////////
  63.  
  64. #define kDefaultEmbPictWidth        QTVRUtils_DegreesToRadians(30.0)
  65. #define kQTVRNormalPictID            1010
  66. #define kQTVRRotatedPictID            1011
  67.  
  68.  
  69. //////////
  70. //       
  71. // function prototypes
  72. //       
  73. //////////
  74.  
  75. ApplicationDataHdl                    VRBB_InitWindowData (WindowObject theWindowObject);
  76. void                                VRBB_DumpWindowData (WindowObject theWindowObject);
  77. OSErr                                VRBB_InstallBackBufferImagingProc (QTVRInstance theInstance, WindowObject theWindowObject, short thePictResID, Boolean theIsHoriz);
  78. OSErr                                VRBB_CleanUpBackBuffer (WindowObject theWindowObject);
  79. PASCAL_RTN OSErr                    VRBB_BackBufferImagingProc (QTVRInstance theInstance, Rect *theRect, UInt16 theAreaIndex, UInt32 theFlagsIn, UInt32 *theFlagsOut, WindowObject theWindowObject);
  80. Boolean                                VRBB_IsBackBufferHorizontal (QTVRInstance theInstance);
  81.